﻿@using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Share/_BaseLayout.cshtml";
}

<h2>Index</h2>
<input type="text" name="validationcode" />
<img id="myimg" style="vertical-align:bottom;" alt="验证码" src="/CheckCode/Captcha" onclick="javascript: $('#myimg').attr('src', '/CheckCode/Captcha?r='+Math.random());"/>

<br />
<img id="valiCode" style="cursor: pointer;" src="/CheckCode/GetValidateCode" alt="验证码" onclick="javascript: $('#valiCode').attr('src', '/CheckCode/GetValidateCode?r=' + Math.random());" />
<br />
@Html.MvcCaptcha(new MvcCaptchaOptions() { 
 ReloadLinkText = "", Height = 7, Width=50,FontWarp = Level.Medium, TextLength=4, LineNoise = Level.High
})
